<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title> 
    <style>
      
    </style>
</head>
<body> 
    
<script>
    var obj = new Proxy({a:11}, {
  get: function (target, key, receiver) {
    console.log(`getting ${key}!`);
    return 1;
  },
  set: function (target, key, value, receiver) {
    console.log(`setting ${key}!`);
    return Reflect.set(target, key, value, receiver);
  }
});
console.log(obj.a)

</script>    

</body>
 
</html>